var mongoose = require('mongoose');
var mongoosePaginate =require('mongoose-paginate');
var Schema = mongoose.Schema;
var MajorSchema = new Schema({
  'campus' :String,
  'college' :String,
  'name': String,
});

// 分页
MajorSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('major', MajorSchema);